package com.fas.hehe.system.controller;

import org.apache.shiro.authz.annotation.Logical;
import org.apache.shiro.authz.annotation.RequiresAuthentication;
import org.apache.shiro.authz.annotation.RequiresPermissions;

import com.fas.core.BaseController;
import com.fas.core.constant.R;
import com.fas.core.plugin.jfinal.route.ControllerBind;
import com.fas.hehe.system.service.LoginLogService;
import com.jfinal.plugin.activerecord.Page;
import com.jfinal.plugin.activerecord.Record;

/**
 * 
 * 用户登录日志管理
 *
 * @Copyright: Copyright (c) 2016 FAS
 * @anthor yixiaoping<thinker1013@163.com>
 * @since 2016年1月23日 下午8:04:19
 * @version V1.0
 */
@RequiresAuthentication
@ControllerBind(controllerKey = "/system/loginLog", viewPath = "/system/loginLog")
public class LoginLogController extends BaseController {
	public LoginLogService loginLogService;

	// 分页查询
	@RequiresPermissions(value = { R.Authority.LoginLog.QUERY}, logical = Logical.AND)
	public void list() {
		Page<Record> recordList = loginLogService.queryPage(this.buildPageRequest());
		this.returnPage(recordList);
	}
}
